//
//  MGBaseRspModel.h
//  MortgageHelper
//
//  Created by zhangxiang on 16/8/8.
//  Copyright © 2016年 zhangxiang. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "AutoCoding.h"

/**
 *  请求结果基本Key
 */
static NSString * const k_Resp_Body_Code    = @"code";
static NSString * const k_Resp_Body_Message = @"msg";
static NSString * const k_Resp_Body_Data    = @"data";

/**
 *  网络请求返回码
 */
typedef NS_ENUM(NSUInteger, MG_REQUEST_RESULT_CODE){
    MG_REQUEST_SUCCESS = 0,            /**< 请求成功 */
    MG_REQUEST_FAILD = 36001,          /**< 请求失败 */
    MG_REQUEST_IS_OFF_LINE = 36003,    /**< 网络不给力 */
};

@interface MGBaseRspModel : NSObject
@property (assign,nonatomic,readonly) NSInteger resultCode;
@property (nonatomic,copy,readonly) NSString *errorMessage;
@property (nonatomic,strong,readonly) NSDictionary *respData;

+ (instancetype)MJmodelWithResponseObject:(NSDictionary *)responseDictionary;

@end
